package agentsSME;
/**
 * This class represents the behaviour history in employees' point of view.
 * @author Chunhui Li
 *
 */
public class BehaviourHistory {
	private String name;
	private BehaviourSME behaviour;
	private double start;
	private double end;
	private String object;
	
	public BehaviourHistory(BehaviourSME b) {
		setName(b.getBehaviourName());
		behaviour = b;
		setStart(b.getStartTime());
		setEnd(b.getEndTime());
		setObject("");
	}
	public BehaviourSME getBehaviour(){
		return behaviour;
	}
	public void setBehaviour(BehaviourSME b){
		behaviour = b;
	}
	public double getStart() {
		return start;
	}
	public void setStart(double start) {
		this.start = start;
	}
	public double getEnd() {
		return end;
	}
	public void setEnd(double end) {
		this.end = end;
	}
	public String getName(){
		return behaviour.getBehaviourName();
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public int getCode(){
		return behaviour.getCode();
	}
	public String toString(){
		String s=this.getName()+": Start at "+this.getStart()+"; End at"+this.getEnd();
		return s;
	}
	public String getObject() {
		return object;
	}
	public void setObject(String object) {
		this.object = object;
	}

}
